#include<stdio.h>
#include"math.h"

int main(int argc, char* argv[]) {
    double n;
    scanf("%lf", &n);
    printf("stdsqrt = %f\n", sqrt(n));

    double old = 1.0, new = 10;
    while(fabs(old - new) > 1e-5) {
        old = new;
        new = (old + (n / old)) / 2.0;
    }
    printf("mysqrt = %f\n", new);
    return 0;
}